package com.zhang.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.entity.ShoppingProduct;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.vo.ProductVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhangD
 * @since 2021-07-13
 */
public interface ShoppingProductService extends IService<ShoppingProduct> {

    Page<ShoppingProduct> selectShoppingProductByCategory2Id(int category2Id, int pageNum , int pageSize);

    List<ShoppingProduct> selectShoppingProductByProductId(int productId);

    String addProduct(ProductVo productVo);

    String updateProduct(ProductVo productVo);
}
